package main

import "fmt"

func main() {

	var names [5]string
	for i := 0; i < 5; i++ {
		str := fmt.Sprintf("%s%d", "name", i)
		names[i] = str
	}
	for _, item := range names {
		fmt.Println("array index " + item)
	}
	for i := range names {
		fmt.Println(i)
	}

	var names2 = [3]string{"name2-1", "name2-2", "name2-3"}
	for _, item := range names2 {
		fmt.Println("item >>>> " + item)
	}
	fmt.Println(">>>>>>>>>")

}
